# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class FilterReqRespRulesConfig(object):

    def __init__(self, id=None, name=None, opObject=None, matchType=None, matchOp=None, key=None, val=None, valType=None, updateTime=None, disable=None, isForceApply=None):
        """
        :param id: (Optional) id为0时为新增，否则为更新
        :param name: (Optional) 规则名称
        :param opObject: (Optional) 操作对象，["req"/"resp"]
        :param matchType: (Optional) 匹配类型，["cookie"/"header"]
        :param matchOp: (Optional) 匹配模式，["del"/"set"]
        :param key: (Optional) filter key
        :param val: (Optional) 匹配值，当匹配模式为"del"时val应为空
        :param valType: (Optional) 匹配值类型，"str"(字符型)，"php"(脚本类型)
        :param updateTime: (Optional) 更新时间，s
        :param disable: (Optional) 0-使用中 1-禁用
        :param isForceApply: (Optional) 0-用户添加 1-运营后台强制添加
        """

        self.id = id
        self.name = name
        self.opObject = opObject
        self.matchType = matchType
        self.matchOp = matchOp
        self.key = key
        self.val = val
        self.valType = valType
        self.updateTime = updateTime
        self.disable = disable
        self.isForceApply = isForceApply
